<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>

		<view class="text-area">
			<button class="title" @click="gotoSecond">Second</button>
			<button class="title" @click="gotoSecondWorktime()">Worktime</button>
			<button class="title" @click="onTimeout()">timeout</button>
			<button class="title" @click="gotoVideo()">标定</button>
			<button class="title" @click="gotoTab()">Tab</button>
		</view>


	</view>

</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
        findDevices: []
			}
		},
		onLoad() {
			console.log("onLoad---onLoad---")

		},
		
		methods: {

			gotoTab() {
				console.error("点击了 onclick----onclick----"+this.title)
				uni.navigateTo({
					url: '/pages/index/Tab'
				});
			},
			
			gotoVideo() {
				console.error("点击了 gotoVideo "+this.title)
				uni.navigateTo({
					url: '/pages/index/v7'
				});
			},
			
			gotoSecond() {
				uni.navigateTo({
					url: '/pages/index/sencond'
				});
			},

			gotoSecondWorktime() {
				uni.navigateTo({
					url: '/pages/index/worktime'
				});
			},
			onTimeout(){
				uni.navigateTo({
					url: '/pages/index/timeout'
				});
			},
      showToast(){
        uni.showToast({
          title: error,
          icon:'none'
        });
        data: Uint8Array = new Uint8Array();
      }

		},
		}
</script>
<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;

	}

	.title {
		margin-top: 5%;
		margin-left: 5%;
		width: 90%;
		height: 44px;
		line-height: 44px;
	}
</style>